package com.yitao.cms.dto.product;

import com.skipper.base.dto.BaseDto;
import com.yitao.cms.utils.NumberUtil;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Author: wwl
 * @Date: 2019/9/16 14:31
 * @Description:
 */
public class ProductSkuUpdateDto extends BaseDto {
    /**
     * 关联的商品id
     */
    @ApiModelProperty("最低级skuId")
    private Long productSkuId;
    @ApiModelProperty("售价")
    private Long salesPrice;
    @ApiModelProperty("售价(元)")
    private Double salesPriceYuan;
    @ApiModelProperty("库存")
    private Integer entityStock;

    public Long getProductSkuId() {
        return productSkuId;
    }

    public void setProductSkuId(Long productSkuId) {
        this.productSkuId = productSkuId;
    }

    public Long getSalesPrice() {
        return NumberUtil.yuanToCent(salesPriceYuan);
    }

    public Double getSalesPriceYuan() {
        return salesPriceYuan;
    }

    public void setSalesPriceYuan(Double salesPriceYuan) {
        this.salesPriceYuan = salesPriceYuan;
    }

    public Integer getEntityStock() {
        return entityStock;
    }

    public void setEntityStock(Integer entityStock) {
        this.entityStock = entityStock;
    }
}
